<extend name="Public:base" />

<block name="content">

    <form action="{:U('Invite/index')}" method="post">
      <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover search-form">
            <thead>
            <tr>
                <th>
                    <input class="marginL10" name="master_id" type="text" value="{:I('master_id')}"  placeholder="师傅账号" value="{:I('phone')}" />
                    <input class="marginL10" name="master_name" type="text" value="{:I('master_name')}"  placeholder="师傅姓名" value="{:I('phone')}" />
                    <select class="marginL10" name="year">
                        <option value="">年份</option>
                        <option value="2016">2016</option>
                        <option value="2017">2017</option>
                        <option value="2018">2018</option>
                        <option value="2019">2019</option>
                    </select>
                    <select class="marginL10" name="month">
                        <option value="">月份</option>
                        <option value="01">1</option>
                        <option value="02">2</option>
                        <option value="03">3</option>
                        <option value="04">4</option>
                        <option value="05">5</option>
                        <option value="06">6</option>
                        <option value="07">7</option>
                        <option value="08">8</option>
                        <option value="09">9</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                    </select>
                    <input class="btn btn-primary radius5 btn-sm" type="submit" value="查询"/>
                    <a class="btn btn-primary radius5 btn-sm" href="{:U('Invite/excelout')}">导出</a>
                    <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                </th>
            </tr>
            </thead>
        </table>
      </div>
    </form>
    师傅收入总金额：{$total}元
    <div class="row">
        <div class="col-xs-12">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover" id="mytable">

                    <thead>
                    <tr>
                        <th>师傅账号</th>
                        <th>师傅名称</th>
                        <th>邀请码</th>
                        <th>年月</th>
                        <th>分享用户订单总量</th>
                        <th>订单总金额</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="ba" key="k">
                        <tr>
                            <td>{$ba['phone']}</td>
                            <td>{$ba['id_name']}</td>
                            <td>{$ba['invite']}</td>
                            <td>{$ba['add_time']|date="Y-m-d H:i:s",###}</td>
                            <td>{$ba['people_count']}</td>
                            <td>{$ba['money_count']}</td>
                            <td><a href="{:U('Invite/detail&id=').$ba['mas_userid']}" class="btn btn-xs btn-info radius5">查看详情</a></td>
                        </tr>
                    </volist>
                    <tr>
                        <td colspan="20" class="page">{$page}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</block>
<block name="css">
</block>
<block name="javascript">
    <script>

    </script>
</block>